package com.designpattern.facade;

import java.math.BigDecimal;

public class FanDianFacade {

    private String name;

    public void shou(BigDecimal amount, String name) {
        System.out.println("要做 " + name + "");
        System.out.println("收到 " + amount + "元");
        this.name = name;
        stage();
        complete();
    }

    public void complete() {
        System.out.println(name + " 完成");
    }

    public void stage() {
        System.out.println("买菜");
        System.out.println("洗菜");
        System.out.println("放油");
        System.out.println("炒菜");
        System.out.println("装盘");
    }
}
